package xyz.jangle.design.chain;
/**
 * 将2个具体处理者编织成链式，然后请求第一个处理者
 * @author Administrator
 *
 */
public class AppMain9 {

	public static void main(String[] args) {
		ConcreteHandler1 handler1 = new ConcreteHandler1();
		ConcreteHandler2 handler2 = new ConcreteHandler2();
		handler1.setNextHandler(handler2);
		
		handler1.handleRequst();	//请求职责链的第一个对象

	}

}
